ChineseTxt=open('zhongwen.txt','r',encoding='UTF-8')
EnglishTxt=open('yingwen.txt','r',encoding='UTF-8')
Clist=[]
Elist=[]


# 遍历中文文本
for cline in ChineseTxt:
    cline = cline.rstrip()
    if len(cline) < 10:
        continue
    else:
        Clist.append("".join(cline.split()))

# 遍历英文文本
for eline in EnglishTxt:
    eline = eline.rstrip()
    if len(eline) < 10:
        continue
    else:
        new = eline.replace('\‘', '\'').replace('”', '"').replace('“','"').replace('\，','\,')
        Elist.append(new)

# 写入新文件
newtext=open('result.txt','w',encoding='UTF-8')
for i in range(len(Elist)):
    newtext.write(Elist[i]+'\n'+Clist[i]+'\n\n')
